<div class="drow_small" id="deal_<?=$deal['Deal']['id']?>">
	<div class="dmid_small">
		<p>Price: $<?=$deal['Deal']['price']?></p>
		<p>Seller: <?=$deal['User']['name']?></p>
		<?if (!strcmp($page,'cart') || (isset($deal['InCart']) && $deal['InCart'])){?>
			<div class="remove_from_cart btn" id="<?=$deal['Deal']['id']?>_remove" style="margin:0px;">Remove from cart</div>
			<div class="add_to_cart btn" id="<?=$deal['Deal']['id']?>_add" style="display:none;margin:0px;">Add to cart</div>
		<?}else{?>
			<div class="add_to_cart btn" id="<?=$deal['Deal']['id']?>_add" style="margin:0px;">Add to cart</div>
			<div class="remove_from_cart btn" id="<?=$deal['Deal']['id']?>_remove" style="display:none;margin:0px;">Remove from cart</div>
		<?}?>
		<?/*<div class="btn" style="margin:0px;" onclick="window.location.href = '<?=$this->webroot?>products/view/<?=$deal['Deal']['id']?>';return false;">Details</div>*/?>
	</div>
</div>